Inside Macintosh: Sound

| Previous | Chapter contents | Chapter top | Section top | Next |

Audio Data Types

You can use the following constants to define the format of the audio data your sound component is currently producing. You can also define additional data types to denote your own compression schemes. You pass these constants in the format field of a sound component data record.

#define kOffsetBinary                   'raw '
#define kTwosComplement                 'twos'
#define kMACE3Compression               'MAC3'
#define kMACE6Compression               'MAC6'

Constant descriptions

kOffsetBinary
The data is noncompressed samples in offset binary format (that is, values range from 0 to 255).
kTwosComplement
The data is noncompressed samples in two's complement format (that is, values range from -128 to 128).
kMACE3Compression
The data is compressed using MACE 3:1 compression.
kMACE6Compression
The data is compressed using MACE 6:1 compression.

© 1998 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |